diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-02-07 15:26:20 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-02-07 15:26:20 -0700 |
commit | 0b7d87e4a32bd443605a1b467293017b7bfcc0ca (patch) | |
tree | 05b87bb81ebd84d6e5384b5556d08244914e634a | |
parent | 9665eda348e3e2fa8ac32fdc26d1c0b0eb65b432 (diff) | |
download | stage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.tar.gz stage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.tar.bz2 stage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.tar.xz stage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.zip |
Fixed another reference bug in return statements.
Thanks David :)
-rw-r--r-- | src/parser.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y index c5b86ea..383ab28 100644 --- a/src/parser.y +++ b/src/parser.y | |||
@@ -163,8 +163,8 @@ cmpltExprList: | |||
163 | ; | 163 | ; |
164 | 164 | ||
165 | cmpltExpr: expr ';' { bld.endCmpltExpr(); } | 165 | cmpltExpr: expr ';' { bld.endCmpltExpr(); } |
166 | | tokReturn '(' expr ')' ';' { bld.addNode( AstNode::tReturn ); bld.endCmpltExpr();} | 166 | | tokReturn '(' expr ')' ';' { bld.addNode( AstNode::tDeref ); bld.addNode( AstNode::tReturn ); bld.endCmpltExpr(); } |
167 | | tokReturn '(' ')' ';' { bld.addNode( AstNode::tReturn ); bld.endCmpltExpr();} | 167 | | tokReturn '(' ')' ';' { bld.addLiteral( Variable::tNull ); bld.addNode( AstNode::tReturn ); bld.endCmpltExpr();} |
168 | | tokGoto '(' expr ')' ';' { bld.addNode( AstNode::tGoto ); bld.endCmpltExpr();} | 168 | | tokGoto '(' expr ')' ';' { bld.addNode( AstNode::tGoto ); bld.endCmpltExpr();} |
169 | | ifbase | 169 | | ifbase |
170 | | tokFor tokEach { | 170 | | tokFor tokEach { |